@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  box-sizing: border-box;
  height: 100%;
}

body,
dd,
dl,
form,
h1,
h2,
h3,
h4,
h5,
h6,
ol,
p,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

b,
em,
i,
s {
  font-style: normal;
  font-weight: 400;
  text-decoration: none;
}

#app {
  height: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

div:focus {
  outline: none;
}

.clearfix {
  &::after {
    display: block;
    height: 0;
    clear: both;
    font-size: 0;
    visibility: hidden;
    content: ' ';
  }
}
// main-container global css
.app {
  &-container {
    margin: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);

    .is-stick {
      margin-bottom: 80px;
    }

    .stick-bottom {
      position: fixed;
      right: 0;
      bottom: 0;
      left: 0;
      z-index: 5;
      padding: 15px 20px;
      text-align: right;
      background-color: #FFFFFF;
      box-shadow: 0 -1px 4px rgba(0, 0, 0, .1);

      .el-button {
        margin-left: 24px;
      }
    }
  }

  &-header {
    padding: 15px 20px;
    border: 1px solid #EBEEF5;
    border-bottom: none;

    .el-input {
      width: 200px;

      @media (max-width: 768px) {
        width: calc(50% - 8px);
      }
    }

    .el-dropdown {
      margin-left: 10px;
    }

    &-select {
      margin-right: 10px;

      @media (max-width: 768px) {
        width: calc(50% - 8px);
      }

      .el-input {
        width: 100%;
      }
    }
  }

  &-footer {
    padding: 15px 20px;
    border: 1px solid #EBEEF5;
    border-top: none;

    .el-cascader {
      margin-right: 10px;
    }

    .el-dropdown {
      margin-right: 10px;
    }
  }

  &-preview {
    display: block;

    .el-image {
      &__error,
      &__inner {
        display: none;
      }
    }
  }
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.form {
  &-container {
    border: 1px solid #EBEEF5;

    .el-form-item {
      padding: 20px;
      margin-bottom: 0;
      border-bottom: 1px solid #EBEEF5;
    }

    &-input,
    .el-select,
    .el-date-editor {
      width: 230px;
    }
  }

  &-item {
    border-bottom: 1px solid #EBEEF5;
  }

  &-title {
    padding: 5px 20px;
    color: #409EFF;

    .el-form-item__content {
      margin-left: 0 !important;
    }
  }
}

.pagination-container {
  padding: 15px 20px;
  background: #FFFFFF;
  border: 1px solid #EBEEF5;
  border-top: none;
}

// scrollbar
::-webkit-scrollbar {
  width: 8px;

  &-thumb {
    background-color: rgba(0, 0, 0, .2);
    border-radius: 4px;

    &:hover {
      background-color: rgba(0, 0, 0, .3);
    }
  }
}

.scrollbar-wrapper {
  overflow-x: hidden;
}
